import requests
url="https://v2.kwaicdn.com/ksc2/vD7gjSEeKe4TJu5PTvKVGj5LvUyvUcKqKajI7tKgQrUvOfOtMZsN1WRk9lJ8hURVqtUl4p3KJyTtdl4VOkkx8cwEaDqvzHzmjIIMHW74NJAn6ooeqNCGx3uDJEBbLPhg.mp4?pkey=AAWa0ZyrLPiKiFd-zrBO__2zL8pJYG4NlMjWyZ8jeeI6mbFnensj6-EujZs7VZ0Q1zbKSB7iG_CNG_hIonZkxURWZPHFfabGGv-E5DO3i_ZoBFaCbq-u49e7m4RiXwM1bvk&tag=1-1713773204-unknown-0-5wjnuy8kys-f3512e4c7e42dc75&clientCacheKey=3x52v4vcanswqvu_45221b05&di=1bdf4e74&bp=14944&tt=hd15&ss=vp"
resp=requests.get(url)
print(resp.status_code)
# 将二进制的字节文件写入本地，mode值为wb
# 获取二进制的字节文件需要用到response中的content属性
open("gaoxiaoshipin.mp4","wb").write(resp.content)
resp.close()